package cn.iocoder.yudao.module.book.controller.app.user.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Schema(description = "用户 APP - 用户阅读统计 Response VO")
@Data
public class UserReadingStatsRespVO {

    @Schema(description = "今日阅读数量", example = "2")
    private Integer todayRead;

    @Schema(description = "本周阅读数量", example = "8")
    private Integer weekRead;

    @Schema(description = "阅读天数", example = "15")
    private Integer readDays;

    @Schema(description = "加入天数", example = "30")
    private Integer joinDays;

    @Schema(description = "阅读记录列表")
    private List<ReadingRecordItem> list;


    @Schema(description = "本月阅读数量", example = "25")
    private Integer monthRead;

    @Schema(description = "阅读总数量", example = "150")
    private Integer totalRead;

    @Schema(description = "阅读记录项")
    @Data
    public static class ReadingRecordItem {
        @Schema(description = "书本ID", example = "123")
        private Integer id;

        @Schema(description = "绘本名称", example = "绘本名称")
        private String name;

        @Schema(description = "绘本封面", example = "https://example.com/book-cover.jpg")
        private String cover;

        @Schema(description = "阅读时间", example = "2024-01-15 10:30:00")
        private String readTime;

        @Schema(description = "创建人", example = "用户名")
        private String creator;
    }
}